﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BackOffice.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class InitialCreate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "AppSystems",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    Name = table.Column<string>(type: "text", nullable: false),
                    Value = table.Column<string>(type: "text", nullable: false),
                    Description = table.Column<string>(type: "text", nullable: true),
                    Type = table.Column<string>(type: "text", nullable: false),
                    Code = table.Column<string>(type: "text", nullable: true),
                    CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
                    UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
                    IsDeleted = table.Column<bool>(type: "boolean", nullable: false),
                    CreateBy = table.Column<string>(type: "text", nullable: false),
                    UpdateBy = table.Column<string>(type: "text", nullable: false),
                    RowVersion = table.Column<byte[]>(type: "bytea", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_AppSystems", x => x.Id);
                });

            migrationBuilder.UpdateData(
                table: "Acls",
                keyColumn: "Id",
                keyValue: new Guid("eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppMenus",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppPermissions",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "Code", "CreatedAt", "UpdatedAt" },
                values: new object[] { "view_dashboard", new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppRolePermissions",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppRoles",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppSystemSettings",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppUserRoles",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "AppUsers",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "LastLoginAt", "PasswordHash", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), "$2a$11$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi", new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "ArticleTags",
                keyColumn: "Id",
                keyValue: new Guid("66666666-6666-6666-6666-666666666666"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "ArticleTags",
                keyColumn: "Id",
                keyValue: new Guid("77777777-7777-7777-7777-777777777777"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Articles",
                keyColumn: "Id",
                keyValue: new Guid("22222222-2222-2222-2222-222222222222"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Articles",
                keyColumn: "Id",
                keyValue: new Guid("33333333-3333-3333-3333-333333333333"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Files",
                keyColumn: "Id",
                keyValue: new Guid("bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Files",
                keyColumn: "Id",
                keyValue: new Guid("cccccccc-cccc-cccc-cccc-cccccccccccc"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Folders",
                keyColumn: "Id",
                keyValue: new Guid("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Shares",
                keyColumn: "Id",
                keyValue: new Guid("dddddddd-dddd-dddd-dddd-dddddddddddd"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Tags",
                keyColumn: "Id",
                keyValue: new Guid("44444444-4444-4444-4444-444444444444"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });

            migrationBuilder.UpdateData(
                table: "Tags",
                keyColumn: "Id",
                keyValue: new Guid("55555555-5555-5555-5555-555555555555"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc), new DateTime(2025, 7, 31, 6, 34, 5, 0, DateTimeKind.Utc) });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "AppSystems");

            migrationBuilder.UpdateData(
                table: "Acls",
                keyColumn: "Id",
                keyValue: new Guid("eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppMenus",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppPermissions",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "Code", "CreatedAt", "UpdatedAt" },
                values: new object[] { null, new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppRolePermissions",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppRoles",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppSystemSettings",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppUserRoles",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "AppUsers",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "CreatedAt", "LastLoginAt", "PasswordHash", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), "113", new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "ArticleTags",
                keyColumn: "Id",
                keyValue: new Guid("66666666-6666-6666-6666-666666666666"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "ArticleTags",
                keyColumn: "Id",
                keyValue: new Guid("77777777-7777-7777-7777-777777777777"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Articles",
                keyColumn: "Id",
                keyValue: new Guid("22222222-2222-2222-2222-222222222222"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Articles",
                keyColumn: "Id",
                keyValue: new Guid("33333333-3333-3333-3333-333333333333"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Files",
                keyColumn: "Id",
                keyValue: new Guid("bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Files",
                keyColumn: "Id",
                keyValue: new Guid("cccccccc-cccc-cccc-cccc-cccccccccccc"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Folders",
                keyColumn: "Id",
                keyValue: new Guid("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Shares",
                keyColumn: "Id",
                keyValue: new Guid("dddddddd-dddd-dddd-dddd-dddddddddddd"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Tags",
                keyColumn: "Id",
                keyValue: new Guid("44444444-4444-4444-4444-444444444444"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });

            migrationBuilder.UpdateData(
                table: "Tags",
                keyColumn: "Id",
                keyValue: new Guid("55555555-5555-5555-5555-555555555555"),
                columns: new[] { "CreatedAt", "UpdatedAt" },
                values: new object[] { new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293), new DateTime(2025, 7, 29, 8, 21, 43, 997, DateTimeKind.Utc).AddTicks(7293) });
        }
    }
}
